Pinging آدرس آی پی در پایتون در حالی که حلقه دادن ارزش بازگشت 1 و 0 در جایگزین

https://www.codeproject.com/Questions/5275369/Pinging-IP-address-in-Python-in-while-loop-giving

When I am pinging the below IP using the os.system() it is pinging and giving response value 0 if ping successful else 1 when not reachable but the problem is when I add that in while if destination ip is unreachable also it is returning True...